from PIL import Image
from PIL.ExifTags import TAGS

def append_info_to_file_footer(file_path, string):
    try:
        with open(file_path, 'a') as f:
            f.write(str(string))
        return True
    except Exception as e:
        print(f'在写入文件 {file_path} 时发生异常:', str(e))
        return False

if __name__ == "__main__":
    # 指定图片路径
    image_path = './bb_love.png'
    append_info_to_file_footer(image_path,"Power By Party Go")